package com.ctz.commonframe.ui.widget;

import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.widget.PopupWindow;

public class PopupWindowFactory {
	public static PopupWindow buildPopupWindow(View popupView, int width, int height, int style) {
		PopupWindow popupWindow = new PopupWindow(popupView, width, height, true);
		if (style > 0)
			popupWindow.setAnimationStyle(style);
			popupWindow.setBackgroundDrawable(new ColorDrawable(0xb0000000));
			popupWindow.setOutsideTouchable(true);
		return popupWindow;
	}
}
